package com.baidu.mpks.backendweb.ktree.domain;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

@Data
public class BaseTreeNode {
    protected Integer id;
    protected Integer parentId;
    protected String name;
    protected List<BaseTreeNode> children = new ArrayList<BaseTreeNode>();

    public void add(BaseTreeNode node) {
        children.add(node);
    }
}
